<?php
namespace app\validate;

use think\Validate;

class ValidateQQ extends Validate
{
    protected $rule = [
        'QQNumber'  => [
            'number', 
            'min' => 5, 
            'max' => 10,
        ],
        'Number' => [
            'number'
        ],
        'String' => [
            'print'
        ],
    ];
    
    protected $field = [
        'QQNumber' => 'QQ号',
        'Number'   => '数字',
        'String'   => '字符串',
    ];
    
    protected $scene = [
        'qq' => ['QQNumber'],
    ];   
    
}